<?php
$xml = simplexml_load_file("books.xml");

$author = $xml->xpath("/bookstore/book/author");		// xpath travse all node.
foreach ($author as $key => $value) {
	echo "$key : $value \n";
}